﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="HelpClass_Manage.aspx.cs" Inherits="TimKen.Web.Admin.Help.HelpClass_Manage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">

    <span class="action-span"><a href="Help_List.aspx">
        <%=GetLangString("HelpManage")%></span>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">


<div align="left">
<asp:Button  ID="btnAdd"  runat="server" onclick="btnAdd_Click" Text="新建" />
</div>

   <div class="list-div">
        <asp:GridView ID="gvHelpClassList" runat="server" AutoGenerateColumns="False" OnRowCommand="gvHelpClassList_RowCommand"
            CssClass="grid">
            <Columns>
                
                  <asp:TemplateField>
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("ID")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                         <%#Eval("ClassID") %>
                    </ItemTemplate>
                </asp:TemplateField>
                
                   <asp:TemplateField>
                    <ItemStyle Width="200" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("Name_Cn")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                         <%#Eval("ClassNameCn")%>
                    </ItemTemplate>
                </asp:TemplateField>
                
                
               
                   <asp:TemplateField>
                    <ItemStyle Width="200" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("Name_En")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                         <%#Eval("ClassNameEn")%>
                    </ItemTemplate>
                </asp:TemplateField>
                
                
                
                <asp:TemplateField>
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("Operation")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:ImageButton ID="btnEdit" runat="server" ToolTip='<%#GetLangString("Edit")%>'
                            CommandName="mod" CommandArgument='<%#Eval("ClassID")%>' ImageUrl="~/Admin/images/icon_edit.gif" />
                        <asp:ImageButton ID="btnDelete" runat="server" ToolTip='<%#GetLangString("Delete")%>'
                            CommandName="del" CommandArgument='<%#Eval("ClassID")%>' ImageUrl="~/Admin/images/icon_drop.gif"
                            OnClientClick="return deleteConfirm()" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        
    </div>
    <div class="main-div">
        <table width="100%">
            <tr>
                <th class="label">
                  <%=GetLangString("ID")%>：
                </th>
                <td>
                   <asp:Label  ID="lablClassID" runat="server" ></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("Name_Cn")%>：
                </th>
                <td>
                    <asp:TextBox ID="txtClassNameCn"  runat="server" Width="95%" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("Name_En")%>：
                </th>
                <td>
                    <asp:TextBox ID="txtClassNameEn"   runat="server" Width="95%"  ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th class="label">
                </th>
                <td>
                    <asp:Button ID="btnSave" runat="server" OnClick="btSave_Click" CssClass="button" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
